//
//  CustomView.m
//  UI21_自定义View的xib
//
//  Created by Scott on 16/4/7.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "CustomView.h"

@interface CustomView ()

@property (strong, nonatomic) IBOutlet UIView *view;

@end

@implementation CustomView


- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    
    self = [super initWithCoder:aDecoder];
    if (self) {

        [[NSBundle mainBundle] loadNibNamed:@"CustomView" owner:self options:nil];
        
        self.view.frame = self.bounds;
        
        [self addSubview:self.view];
    }
    return self;
}


@end
